package org.dut.ioc.v2;


// v1 耦合度高,不方便修改
// v2 IOC模式。耦合度低
public class Car {
    private  Framework framework;
    public Car(Framework framework) {
        this.framework = framework;
    }

    public void drive() {
        System.out.println("Car driving");
    }
}
